//New treatment (checks that they actually left the sample, not only the tradable sector)
foreach y in 2000 2005 2010 {
    g treat`y' = asinh(mig_rm_left_sam_`y')
    g after`y' = year>=`y'
    g didsample1990`y' = year==1990 | year==`y' 
    g didsample1995`y' = year==1995 | year==`y'
    g Rdeu`y' = rcadeu`y' >=1 & rcadeu1995>=1
}
g treat1995level = asinh(mig_rm_came_sam_9195)
g treat2000pc = asinh(mig_rm_left_sam_2000/(pop1990/1000)) //Per 1,000,000 people

//g treatIV = asinh(migest_asyl_DEU_9195)
//g treatIV = asinh(migest_asyl_FYUG1975_9195) //IV uses distribution (weighted by asylum seekers) of Yugoslavians in 1975
//g treatIV = asinh(shareest_asyl_FYUG1975_9195) //IV to uses distribution (shares) of Yugoslavians in 1975
//g treatIV = asinh(migest_asyl_DEU_1990_9195) /IV to use distribution (weighted by asylum seekers) of Germans in 1990
g treatIV = asinh(shareest_asyl_DEU_9195) //IV uses distrubition (shares) of Germans in 1990


/*Define labels*/
label var fdi "FDI to YUG by industry (M)"
label var lnexp "Exports (log)"
label var lnexpplus1 "Exports (log +1)"
label var asinhexp "Exports (asinh)"


